import { ref } from 'vue';
import { defineStore } from 'pinia';

export const useMap = defineStore('Map', () => {
  let map = ref(null);
  let ggMap = ref(null);
  let draw = ref(null);

  function setMap(val) {
    map.value = val;
  }
  function setggMap(val) {
    ggMap.value = val;
  }

  function setDraw(val) {
    draw.value = val;
  }

  return { map, ggMap, draw, setMap, setggMap, setDraw };
});
